projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f83e1d
)
(fill-region-as-paragraph):
author
Richard M. Stallman
<rms@gnu.org>
Tue, 12 Aug 1997 15:52:17 +0000
(15:52 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 12 Aug 1997 15:52:17 +0000
(15:52 +0000)
When justifying, cope if line ends in spaces and no newline.
lisp/textmodes/fill.el
patch
|
blob
|
history
diff --git
a/lisp/textmodes/fill.el
b/lisp/textmodes/fill.el
index 5609eef944d1055f3a70ecc11c8fa74faf92a6df..a7431356fda8ee77ae1ea6cced3c9bcfb4a1596f 100644
(file)
--- a/
lisp/textmodes/fill.el
+++ b/
lisp/textmodes/fill.el
@@
-513,8
+513,10
@@
space does not end a sentence, so don't break a line there."
(setq prefixcol (current-column))))))
;; Justify the line just ended, if desired.
(if justify
- (if (eobp)
- (justify-current-line justify t t)
+ (if (save-excursion (skip-chars-forward " \t") (eobp))
+ (progn
+ (delete-horizontal-space)
+ (justify-current-line justify t t))
(forward-line -1)
(justify-current-line justify nil t)
(forward-line 1))))))